#include <stdio.h>
void sort_desc(double arr[], int size);
int main() {
    double arr[5]= {3.0, 35.0, 11.0, 52.0, 8.0};
    sort_desc(arr, 5);
    return 0;
}

void sort_desc(double arr[], int size) {
    for (int i = 0; i <size-1; ++i) {
        for (int j = i; j < size; ++j) {
            if (arr[i] < arr[j]) {
                double temp = arr[i];
                arr[i] = arr[j];
                arr[j] = temp;
            }
        }
    }
}
